package com.soso.util;

import java.util.Random;
import java.util.UUID;

public class UUIDutils {
	 
public static String getUUID() {

return UUID.randomUUID().toString().replace("-", ""); 
 
}

public static String findkeyUtil() {
String str="qwertyuiopasdfghjklzxcvbnm0123456789";
StringBuilder st=new StringBuilder(8);
for(int i=0;i<8;i++){
char ch=str.charAt(new Random().nextInt(str.length()));
st.append(ch);
}
String findkey=st.toString().toLowerCase();

StringBuilder st1=new StringBuilder(4);
for(int i=0;i<4;i++){
char ch1=str.charAt(new Random().nextInt(str.length()));
st1.append(ch1);
}
String findkey1=st1.toString().toLowerCase();


StringBuilder st2=new StringBuilder(4);
for(int i=0;i<4;i++){
char ch2=str.charAt(new Random().nextInt(str.length()));
st2.append(ch2);
}
String findkey2=st2.toString().toLowerCase();

StringBuilder st3=new StringBuilder(4);
for(int i=0;i<4;i++){
char ch3=str.charAt(new Random().nextInt(str.length()));
st3.append(ch3);
}
String findkey3=st3.toString().toLowerCase();

StringBuilder st4=new StringBuilder(12);
for(int i=0;i<12;i++){
char ch4=str.charAt(new Random().nextInt(str.length()));
st4.append(ch4);
}
String findkey4=st4.toString().toLowerCase();

String sums=findkey+'-'+findkey1+'-'+findkey2+'-'+findkey3+'-'+findkey4;
return sums;
}
}
